package com.hisysteTopet.hisystepet.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hisysteTopet.hisystepet.bean.Notice;
import com.hisysteTopet.hisystepet.mapper.NoticeMapper;
import com.hisysteTopet.hisystepet.service.NoticeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class NoticeServiceImpl extends ServiceImpl<NoticeMapper, Notice> implements NoticeService {

    @Autowired
    private NoticeMapper noticeMapper;

    @Override
    public List<Notice> selectListNotice() {
        return noticeMapper.selectListNotice();
    }

    @Override
    public void updateNoticeMessage(String noticeMessage, Integer noticeId) {
        noticeMapper.updateNoticeMessage(noticeMessage,noticeId);
    }

    @Override
    public void deleteNoticeMessage(Integer noticeId) {
        noticeMapper.deleteNoticeMessage(noticeId);
    }

    @Override
    public void insertNoticeMessage(String noticeMessage, Date date) {
        noticeMapper.insertNoticeMessage(noticeMessage,date);
    }
}
